<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
        <div id="parent">
                hello world
                <p id="first">good</p>
                <p>good</p>
                <p>good</p>
            </div>
    <script>
            /*  
            childNode (7) -->获取子节点  不会区分文本和元素节点
            children(4)
             */
             var parent=document.getElementById("parent")
             var childs=parent.children;
             var first=document.getElementById("first")
             console.log(childs)
         </script>      
</body>
</html>